import javax.persistence.*;
import java.util.Date;
import java.util.List;

@Entity
@Table(name = "customers")
public class Customer {
    @Id
    @Column(name = "顾客ID")
    private String customerId;
    
    @Column(name = "顾客类别")
    private String category;
    
    @Column(name = "姓名")
    private String fullName;
    
    @OneToMany(mappedBy = "customer", cascade = CascadeType.ALL)
    private List<SalesOrder> salesOrders;
}